/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fii.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Zeus
 */
@Entity
@Table(name = "pg_prog_acad_detalle", catalog = "prog_acad", schema = "")
@NamedQueries({
    @NamedQuery(name = "PgProgAcadDetalle.findAll", query = "SELECT p FROM PgProgAcadDetalle p"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgitemProg", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgitemProg = :pgitemProg"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgcodProgAcad", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgcodProgAcad = :pgcodProgAcad"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgcodCurso", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgcodCurso = :pgcodCurso"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgcodAula", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgcodAula = :pgcodAula"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgCiclo", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgCiclo = :pgCiclo"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgEstado", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgEstado = :pgEstado"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgcodGrupo", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgcodGrupo = :pgcodGrupo"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgCapacidad", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgCapacidad = :pgCapacidad"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgcapacidadOriginal", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgcapacidadOriginal = :pgcapacidadOriginal"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgSeccion", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgSeccion = :pgSeccion"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgdocenteTeoria", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgdocenteTeoria = :pgdocenteTeoria"),
    @NamedQuery(name = "PgProgAcadDetalle.findByPgdocentePractica", query = "SELECT p FROM PgProgAcadDetalle p WHERE p.pgdocentePractica = :pgdocentePractica")})
public class PgProgAcadDetalle implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "pg_item_Prog", nullable = false, length = 10)
    private String pgitemProg;
    @Basic(optional = false)
    @Column(name = "pg_codProgAcad", nullable = false, length = 10)
    private String pgcodProgAcad;
    @Basic(optional = false)
    @Column(name = "pg_codCurso", nullable = false, length = 6)
    private String pgcodCurso;
    @Basic(optional = false)
    @Column(name = "pg_codAula", nullable = false, length = 6)
    private String pgcodAula;
    @Basic(optional = false)
    @Column(name = "pg_ciclo", nullable = false, length = 20)
    private String pgCiclo;
    @Basic(optional = false)
    @Column(name = "pg_estado", nullable = false)
    private char pgEstado;
    @Basic(optional = false)
    @Column(name = "pg_codGrupo", nullable = false, length = 2)
    private String pgcodGrupo;
    @Column(name = "pg_capacidad")
    private Integer pgCapacidad;
    @Basic(optional = false)
    @Column(name = "pg_capacidadOriginal", nullable = false)
    private int pgcapacidadOriginal;
    @Basic(optional = false)
    @Column(name = "pg_seccion", nullable = false, length = 2)
    private String pgSeccion;
    @Column(name = "pg_docente_Teoria", length = 5)
    private String pgdocenteTeoria;
    @Column(name = "pg_docente_Practica", length = 5)
    private String pgdocentePractica;

    public PgProgAcadDetalle() {
    }

    public PgProgAcadDetalle(String pgitemProg) {
        this.pgitemProg = pgitemProg;
    }

    public PgProgAcadDetalle(String pgitemProg, String pgcodProgAcad, String pgcodCurso, String pgcodAula, String pgCiclo, char pgEstado, String pgcodGrupo, int pgcapacidadOriginal, String pgSeccion) {
        this.pgitemProg = pgitemProg;
        this.pgcodProgAcad = pgcodProgAcad;
        this.pgcodCurso = pgcodCurso;
        this.pgcodAula = pgcodAula;
        this.pgCiclo = pgCiclo;
        this.pgEstado = pgEstado;
        this.pgcodGrupo = pgcodGrupo;
        this.pgcapacidadOriginal = pgcapacidadOriginal;
        this.pgSeccion = pgSeccion;
    }

    public String getPgitemProg() {
        return pgitemProg;
    }

    public void setPgitemProg(String pgitemProg) {
        this.pgitemProg = pgitemProg;
    }

    public String getPgcodProgAcad() {
        return pgcodProgAcad;
    }

    public void setPgcodProgAcad(String pgcodProgAcad) {
        this.pgcodProgAcad = pgcodProgAcad;
    }

    public String getPgcodCurso() {
        return pgcodCurso;
    }

    public void setPgcodCurso(String pgcodCurso) {
        this.pgcodCurso = pgcodCurso;
    }

    public String getPgcodAula() {
        return pgcodAula;
    }

    public void setPgcodAula(String pgcodAula) {
        this.pgcodAula = pgcodAula;
    }

    public String getPgCiclo() {
        return pgCiclo;
    }

    public void setPgCiclo(String pgCiclo) {
        this.pgCiclo = pgCiclo;
    }

    public char getPgEstado() {
        return pgEstado;
    }

    public void setPgEstado(char pgEstado) {
        this.pgEstado = pgEstado;
    }

    public String getPgcodGrupo() {
        return pgcodGrupo;
    }

    public void setPgcodGrupo(String pgcodGrupo) {
        this.pgcodGrupo = pgcodGrupo;
    }

    public Integer getPgCapacidad() {
        return pgCapacidad;
    }

    public void setPgCapacidad(Integer pgCapacidad) {
        this.pgCapacidad = pgCapacidad;
    }

    public int getPgcapacidadOriginal() {
        return pgcapacidadOriginal;
    }

    public void setPgcapacidadOriginal(int pgcapacidadOriginal) {
        this.pgcapacidadOriginal = pgcapacidadOriginal;
    }

    public String getPgSeccion() {
        return pgSeccion;
    }

    public void setPgSeccion(String pgSeccion) {
        this.pgSeccion = pgSeccion;
    }

    public String getPgdocenteTeoria() {
        return pgdocenteTeoria;
    }

    public void setPgdocenteTeoria(String pgdocenteTeoria) {
        this.pgdocenteTeoria = pgdocenteTeoria;
    }

    public String getPgdocentePractica() {
        return pgdocentePractica;
    }

    public void setPgdocentePractica(String pgdocentePractica) {
        this.pgdocentePractica = pgdocentePractica;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pgitemProg != null ? pgitemProg.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PgProgAcadDetalle)) {
            return false;
        }
        PgProgAcadDetalle other = (PgProgAcadDetalle) object;
        if ((this.pgitemProg == null && other.pgitemProg != null) || (this.pgitemProg != null && !this.pgitemProg.equals(other.pgitemProg))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.fii.entity.PgProgAcadDetalle[ pgitemProg=" + pgitemProg + " ]";
    }
    
}
